<template>
    <!--退货-->
    <div id="SalesReturn">
        <g-details :detailData="data.detailData" :inputConfig="inputConfig" ref="input"></g-details>
    </div>
</template>

<script>
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "SalesReturn",
        mixins: [baseMixin],
        props: {
            data: {
                type: Object
            }
        },
        data() {
            return {
                inputConfig: [
                        {
                            type: "input",
                            label: this.$t('in.lpn'),
                            disabled: true,
                            props: "toid",
                        },
                        {
                            type: "input",
                            label: this.$t('config.num'),
                            disabled: true,
                            props: "qtyreceived",
                        },
                        {
                            type: "select",
                            label: this.$t('common.type'),
                            disabled: true,
                            props: "returntype",
                            options: this.getOptions("codelkup/RETTYPE")
                        },
                        {
                            type: "select",
                            label: this.$t('in.returnreason'),
                            disabled: true,
                            props: "returnreason",
                            options: this.getOptions("codelkup/RETREASON")
                        },
                        {
                            type: "select",
                            label: this.$t('in.returncondition'),
                            disabled: true,
                            props: "returncondition",
                            options: this.getOptions("codelkup/RETCOND")
                        },
                        {
                            type: "select",
                            label: this.$t('in.dispositiontype'),
                            disabled: true,
                            props: "dispositiontype",
                            options: this.getOptions("codelkup/RETDISPTYP")
                        },
                        {
                            type: "select",
                            label: this.$t('in.dispositioncode'),
                            disabled: true,
                            props: "dispositioncode",
                            options: this.getOptions("codelkup/RETDISPCOD")
                        },
                ],
            }
        },
        methods: {},
        mounted() {
        },
        watch: {},
    }
</script>

<style scoped>

</style>
